﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DomeQuwei.aspx.cs" Inherits="PropertyAppraisal.DoemsKanCha.DomeQuwei" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
     <link href="../jquery-easyui-1.3.5/themes/default/easyui.css" rel="stylesheet" />
    <link type="/text/css" href="../jquery-easyui-1.3.5/themes/icon.css" rel="stylesheet" />
    <link href="../jquery-easyui-1.3.5/demo/demo.css" rel="stylesheet" />

    <%--<script type="text/javascript" src="easyui/js/jquery-1.8.0.min.js"></script>--%>

    <script type="text/javascript" src="../jquery-easyui-1.3.5/jquery-1.7.2-min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.3.5/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.3.5/easyloader.js"></script>

    <script src="../easyui/jquery.params.js"></script>
</head>
<body>
    <%--<h2>借款人员基本信息</h2>--%>
    <div class="demo-info">
        <div class="demo-tip icon-tip"></div>
        <%--<div>Fill the form and submit it.</div>--%>
    </div>
    <div style="margin: 0;"></div>
    <form id="form1" runat="server">
        <div class="easyui-panel" fit="true" style="border: none;">
            <div style="margin-left: 30px;" id="ff">
                <table>
                    <tr>
                        <td>小区四至-东至：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="east" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-东至" />
                        </td>
                    </tr>
                    <tr>
                        <td>小区四至-南至：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="south" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-南至" />
                        </td>
                    </tr>
                    <tr>
                        <td>小区四至-西至：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="west" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-西至" />
                        </td>
                    </tr>
                    <tr>
                        <td>小区四至-北至：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="north" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-北至" />
                        </td>
                    </tr>
                    <tr>
                        <td>位置环绕：</td>
                        <td style="padding-left: 50px;">
                             <select class="easyui-combobox" style="width: 800px;" id="select1">
                                    <%=weiBD() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>交通情况：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="jiaotong" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-北至" />
                        </td>
                    </tr>
                    <tr>
                        <td>交通便捷度：</td>
                        <td style="padding-left: 50px;">
                             <select class="easyui-combobox" style="width: 800px;" id="select2">
                                     <%=jiaoBD() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>自然人文环境情况：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="nature" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-北至" />
                        </td>
                    </tr>
                    <tr>
                        <td>自然人文环境质量：</td>
                        <td style="padding-left: 50px;">
                             <select class="easyui-combobox" style="width: 800px;" id="select3">
                                    <%=PersonBD() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>居住社区情况：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="shequ" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-北至" />
                        </td>
                    </tr>
                    <tr>
                        <td>居住社区成熟度：</td>
                        <td style="padding-left: 50px;">
                             <select class="easyui-combobox" style="width: 800px;" id="select4">
                                     <%=sheBD() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>基础设施配套情况：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" type="text" id="jichu" data-options="required:true" style="width: 800px;" placeholder="请输入小区四至-北至" />
                        </td>
                    </tr>
                    <tr>
                        <td>基础设施配套度：</td>
                        <td style="padding-left: 50px;">
                             <select class="easyui-combobox" style="width: 800px;" id="select5">
                                   <%=jichupeiBD () %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>配套设施：</td>
                        <td style="padding-left: 50px;">
                             <select class="easyui-combobox" style="width: 800px;" id="select6">
                                     <%=peiBD() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>有关说明:</td>
                        <td style="padding-left: 50px;">
                            <textarea name="message" style="height: 60px; width: 400px;" placeholder="说点什么...最少输入10个字" id="shuo"></textarea>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="text-align: center; padding: 5px">
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
            </div>
        </div>
    </form>


    <script>
        function submitForm() {
            var dzhi = $("#east").val();
            var nzhi = $("#south").val();
            var xzhi = $("#west").val();
            var bzhi = $("#north").val();
            var wei = $("#select1").val();
            var jiao = $("#jiaotong").val();
            var jbian = $("#select2").val();

            var zhuan = $("#nature").val();
            var zliang = $("#select3").val();
            var juq = $("#shequ").val();
            var juk = $("#select4").val();
            var sq = $("#jichu").val();
            var sk = $("#select5").val();
            var ps = $("#select6").val();
            var shuoming = $("#shuo").val();

            var prenum = $.query.get("id");//项目号;
            $.ajax({
                type: "post", //要用post方式                 
                url: "DomeQuwei.aspx/submins",//方法所在页面和方法名
                data: "{'ProjectNumber':'" + prenum + "','Location_East':'" + dzhi + "','Location_West':'" + nzhi + "','Location_North':'" + xzhi + "','Location_South':'" + bzhi + "','Location_Position':'" + wei + "','Location_Traffic':'" + jiao + "','Location_Convenient':'" + jbian + "','Location_Humanity':'" + zhuan + "','Location_Quality':'" + zliang + "','Location_Community':'" + juq + "','Location_Mature':'" + juk + "','Location_Facilities':'" + sq + "','Location_Degree':'" + sk + "','Location_Supporting':'" + ps + "','Location_Explain':'" + shuoming + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    var json = eval("(" + data.d + ")");
                  
                    if (json == 1)
                    {
                        $.messager.alert("提示信息", "提交成功");
                    }
                    else
                        $.messager.alert("提示信息", "提交失败");
                }
            });
        }
    </script>
</body>
</html>
